package com.zzyl.serve.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzyl.common.annotation.Excel;
import com.zzyl.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;


import java.time.LocalDateTime;

@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "护理任务实体")
public class NursingTask extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    private Long id;

    @Excel(name = "护理员id")
    @ApiModelProperty(value = "护理员id")
    private String nursingId;

    @Excel(name = "项目id")
    @ApiModelProperty(value = "项目id")
    private Integer projectId;

    @Excel(name = "护理项目名称")
    @ApiModelProperty(value = "护理项目名称")
    private String projectName;

    @Excel(name = "老人id")
    @ApiModelProperty(value = "老人id")
    private Long elderId;

    @Excel(name = "老人姓名")
    @ApiModelProperty(value = "老人姓名")
    private String elderName;

    @Excel(name = "床位编号")
    @ApiModelProperty(value = "床位编号")
    private String bedNumber;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "预计服务时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "预计服务时间")
    private LocalDateTime estimatedServerTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "实际服务时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "实际服务时间")
    private LocalDateTime realServerTime;

    @Excel(name = "执行记录")
    @ApiModelProperty(value = "执行记录")
    private String mark;

    @Excel(name = "取消原因")
    @ApiModelProperty(value = "取消原因")
    private String cancelReason;

    @Excel(name = "状态  1待执行 2已执行 3已关闭 ")
    @ApiModelProperty(value = "状态  1待执行 2已执行 3已关闭 ")
    private Integer status;

    @Excel(name = "执行图片")
    @ApiModelProperty(value = "执行图片")
    private String taskImage;
}
